From 3c279b14926ce6c8676fc89884a582bd82a09875 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 30 Nov 2012 16:18:14 +0100 Subject: [PATCH] icon cache: Fix double free The symbolic icon cache code free crashed with a double free due to a missing ->next in the loop. --- gtk/gtkicontheme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index dc589254c3..0520686206 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1568,7 +1568,7 @@ symbolic_pixbuf_cache_free (SymbolicPixbufCache *cache) while (cache != NULL) { - next = cache; + next = cache->next; g_object_unref (cache->pixbuf); g_free (cache); -- 2.30.2